<%@ include file="/html/portlet/init.jsp" %>

<%@ page import="java.util.List" %>
<%@ page import="java.text.SimpleDateFormat" %>

<%@ page import="com.ext.portlet.myprofile.model.MyProfile" %>
<%@ page import="com.ext.portlet.myprofile.service.MyProfileLocalServiceUtil" %>
<%@ page import="com.ext.portlet.myprofile.service.persistence.MyProfileUtil" %>
	
<%@ page import="com.liferay.portal.model.User" %>
<%@ page import="com.liferay.portal.service.UserLocalServiceUtil" %>
<%@ page import="com.liferay.portal.service.persistence.UserUtil" %>

<%@ page import="com.liferay.portal.model.Contact" %>
<%@ page import="com.liferay.portal.service.ContactLocalServiceUtil" %>
<%@ page import="com.liferay.portal.service.ContactServiceUtil" %>

<%@ page import="com.liferay.portal.model.Address" %>
<%@ page import="com.liferay.portal.service.AddressLocalServiceUtil" %>
<%@ page import="com.liferay.portal.service.AddressServiceUtil" %>
<%@ page import="com.liferay.portal.service.persistence.AddressUtil"%>

<%@ page import="com.liferay.portal.model.Phone" %>
<%@ page import="com.liferay.portal.service.PhoneLocalServiceUtil" %>
<%@ page import="com.liferay.portal.service.persistence.PhoneUtil"%>

<%@ page import="com.ext.portlet.registration.model.School" %>
<%@ page import="com.ext.portlet.registration.service.SchoolLocalServiceUtil" %>
<%@ page import="com.ext.portlet.registration.service.persistence.SchoolUtil"%>

<%@ page import="com.ext.portlet.registration.model.Student" %>
<%@ page import="com.ext.portlet.registration.service.StudentLocalServiceUtil" %>
<%@ page import="com.ext.portlet.registration.service.persistence.StudentUtil"%>

<%@ page import="com.ext.portlet.registration.model.Parent" %>
<%@ page import="com.ext.portlet.registration.service.ParentLocalServiceUtil" %>
<%@ page import="com.ext.portlet.registration.service.persistence.ParentUtil"%>

<%@ page import="com.ext.portlet.registration.model.Teacher" %>
<%@ page import="com.ext.portlet.registration.service.TeacherLocalServiceUtil" %>
<%@ page import="com.ext.portlet.registration.service.persistence.TeacherUtil"%>

<%@ page import="com.ext.portlet.registration.model.College" %>
<%@ page import="com.ext.portlet.registration.service.CollegeLocalServiceUtil" %>
<%@ page import="com.ext.portlet.registration.service.persistence.CollegeUtil"%>

<%@ page import="com.ext.portlet.registration.model.CollStudent"%>
<%@ page import="com.ext.portlet.registration.service.persistence.CollStudentUtil"%>

<%@ page import="com.ext.portlet.registration.model.Staff"%>
<%@ page import="com.ext.portlet.registration.service.persistence.StaffUtil"%>

<%@ page import="com.liferay.portal.kernel.util.ParamUtil" %>
<%@ page import="com.liferay.portal.DuplicateUserScreenNameException" %>

<%@ page import="com.liferay.portal.theme.ThemeDisplay" %>

<%@ page import="com.liferay.portal.service.UserGroupLocalServiceUtil" %>
<%@ page import="com.liferay.portal.model.UserGroup" %>
<%@ page import="com.liferay.portal.model.Group" %>
<%@ page import="com.liferay.portal.service.GroupLocalServiceUtil" %>

<%

ThemeDisplay theme1 = (ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY);
	long companyId = theme1.getCompanyId();	    
	long userId = 0L;
	long grUserId = 0L;
Group group = GroupLocalServiceUtil.getGroup(theme1.getScopeGroupId());
 grUserId = group.getCreatorUserId();
 if (group.isCommunity()) {		
	userId = theme1.getUserId();
  }else{
    	long creatorUserId = group.getCreatorUserId();
	userId = creatorUserId;
	
}

%>
